import server from '../utils/request'
export function getPermissions(obj) {
    return server({
        method: "GET",
        url: "/api/manage/role/list",
        params:obj
    })
}

export function addPermissions(data) {
    return server({
        method: "POST",
        url: "/api/manage/role/add",
        data:{
            roleName:data
        }
    })
}
export function updatePermissions(data) {
    return server({
        method: "POST",
        url: "/api/manage/role/update",
        data
    })
}
